home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-01-21 | 3.6 KB | 107 lines | [TEXT/ttxt] |
- # A translator definition file for use with Language Assistant
- #
- # General form: varname=value
- # Extended form: varname=name:value
- #
- # General form is used in most cases; extended form is used only when the
- # variable contains two parts, an identifier or name, and an actual value.
- # The presence of whitespace before and after the equals sign will not
- # affect anything.
- #
- # Arrays are notated with []s after their names; these special variables
- # may be set as many times as necessary to append more values to them.
- # Extended form arrays are notated with [][]s after their names.
- #
- # And, as you have probably noticed by now, lines that begin with a '#'
- # sign are treated as comments and will not be evaluated.
- #
- # The following constants are available for use throughout this file:
- # $la_language1: the name (or identifier) of the first language menu
- # $la_language2: the name (or identifier) of the second language menu
- # $la_text: the text typed into the translation box
- #
- # Note: only one language menu will appear if the language_type is set to
- # 'single'. In this case, you should use $la_language1 to retrive the
- # language.
-
- # cookie[][]: the names of any cookies that should be retrieved
- cookie=sessionid:
-
- # cookie_host: the domain name of the host to retrieve cookies from
- cookie_host=babel.altavista.com
-
- # cookie_port: the port of the host to retrieve cookies from
- cookie_port=80
-
- # cookie_script: the name of the script or file to retrive cookies from
- cookie_script=/translate.dyn
-
- # data_start[]: a unique string that directly precedes the translated next
- data_start=<textarea rows="3" wrap=virtual cols="56" name="q">
-
- # data_end[]: a unique string that comes directly after the translated next
- data_end=</textarea>
-
- # add more (optional) possible data_starts and data_ends
- data_start=<td bgcolor=white>
- data_end=</td>
-
- # the internet text encoding name to use with the MacOS Text Encoding Converter
- encoding=utf-8
-
- # engine_name: the name of the translator
- engine_name=AltaVista
-
- # form_input[][]: an array of html form inputs to send to the translation server
- form_input=doit:Done
-
- # add more form_inputs
- form_input=BabelFishFrontPage:yes
- form_input=bblType:urltext
- form_input=urltext:$la_text
- form_input=url:http://
- form_input=lp:$la_language1
-
- # form_type: html form type; always either 'get' or 'post'
- form_type=post
-
- # get_cookies: should we query cookie_host for cookies during the
- # "Starting up..." stage?
- get_cookies=false
-
- # language[][]: the different languages and their "identifiers"
- language=en_fr:English to French
-
- # add more languages
- language=en_de:English to German
- language=en_it:English to Italian
- language=en_pt:English to Portuguese
- language=en_es:English to Spanish
- language=fr_en:French to English
- language=de_en:German to English
- language=it_en:Italian to English
- language=pt_en:Portuguese to English
- language=es_en:Spanish to English
- language=de_fr:German to French
- language=fr_de:French to German
-
- # language1_default: default menu selection for language1
- language1_default: en_fr
-
- # language2_default: default menu selection for language2 (use if language_type=dual)
- language2_default:
-
- # language_type: should we show two translation menus, or just one; always 'single' or 'dual'
- language_type=single
-
- # referrer: referrer to use when sending http requests to the translation server
- referrer=http://babel.altavista.com/translate.dyn
-
- # translate_host: the domain name of the host to retrieve translations from
- translate_host=babel.altavista.com
-
- # translate_port: the port of the host to retrieve translations from
- translate_port=80
-
- # cookie_script: the name of the script or file to retrive translations from
- translate_script=/translate.dyn